<%@ page language="java" pageEncoding="UTF-8" contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/view/common/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>合格证补录</title>
	<script src="${contextPath}/scripts/jquery/jquery-1.8.3.min.js" type="text/javascript"></script>
	<script src="${contextPath}/scripts/scriptvalidator.js" type="text/javascript"></script>
	<script src="${contextPath}/scripts/common.js" type="text/javascript"></script>
	<link href="${contextPath}/styles/default.css" rel="stylesheet" type="text/css" />
	<script src="${contextPath}/scripts/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
	<script language='javascript'>
	function checkSubmit(){
	 	var staffForm = document.form1;
		if(!Validator.Validate(staffForm, 3)) {
			return false;
		}
		return true;
	 }
		function show(){
			window.open("../system/treaty/selectShop.do", "newwindow", "height=500, width=600, toolbar =no, menubar=no, scrollbars=no, resizable=no, location=no, status=no");
		}
		function cao(){
			if(checkSubmit()){
				var fo=document.form1;
				fo.action="saveb.do";
				fo.submit();
			}
			}
		function selectShopCallBack(hao, ming, id){
			 document.getElementById("textfield").value=hao;
			 document.getElementById("SHOPID").value=id;
			document.getElementById("aaa").value=ming;
			}
</script>
</head>
<body>
<div class="navigation">
	    <span><a href="javascript:window.history.back();"><img src="${contextPath}/images/back_nav_btn.png" /></a>
	    <a href="javascript:window.history.back();">返回</a>
	    <a href="javascript:window.history.forward();"><img src="${contextPath}/images/go_nav_btn.png" /></a>
	     <a href="javascript:window.history.forward();">前进</a>
	    <a href="javascript:window.location.reload();"><img src="${contextPath}/images/refresh_nav_btn.png" /></a>
	     <a href="javascript:window.location.reload();">刷新</a>
	    </span>合格证管理&gt;&gt;详情
    </div>
<div class="xt_main_right_center">
<form name="form1" id="form1" onSubmit="return checkSubmit();" method="post" action="save.do">
<input type="hidden" name="redirectUrl" value='<s:property value='redirectUrl'/>'/>
  <table width="100%" border="0" align="center" cellpadding="1" cellspacing="2">
    <tr>
      <td class="left-td-width-bg"  align="right">店号：</td>
      <td class="right-td-width-bg-left" >${shopSc.shopMark }</td>
      <td class="left-td-width-bg"  align="right">店名：</td>
      <td align="left" class="right-td-width-bg-left">${shopSc.shopName }</td>
      </tr>
    <tr>
      <td class="left-td-width-bg"  align="right">驻店顾问：</td>
      <td class="right-td-width-bg-left"><s:property value="findUserShopByShopId(shopSc.id)"/>
      </td>
      <td class="left-td-width-bg"  align="right">区域经理：</td>
      <td align="left" class="right-td-width-bg-left"><s:property value="getShopUserName(shopSc.id)"/></td>
      </tr> 
  </table>
  <table width="100%" border="0" align="center" cellpadding="1" cellspacing="2">
		<tr>
		  <td class="top-td-width-bg">序号</td>
		  <td class="top-td-width-bg">协议编号</td>
		  <td class="top-td-width-bg">金融机构</td>
		  <td class="top-td-width-bg">分行名称</td>
		  <td class="top-td-width-bg">管理费收取方式</td>
		  <td class="top-td-width-bg">管理费收取标准</td>
		  <td class="top-td-width-bg">协议开始日</td>
		  <td class="top-td-width-bg">协议结束日</td>
		  <td class="top-td-width-bg">客户经理</td>
		  <td class="top-td-width-bg">客户经理邮箱</td>
		  <td class="top-td-width-bg">客户经理联系电话</td>
	  </tr>
	   <s:iterator value="treaties" status="st" id="t">
		<tr>
		<td align="center"><s:property value="#st.index+1"/></td>
		<td align="center">${t.identifier}</td>
		<td align="center">${t.financial.name}</td>
		<td align="center">${t.branch}</td>
		<td align="center"><s:if test='#t.collectionWay.equals("0")'>月付</s:if>  
       <s:if test='#t.collectionWay.equals("1")'>季付 </s:if> 
         <s:if test='#t.collectionWay.equals("2")'>半年付</s:if>   </td>
		<td align="center"><s:property value="formatAmount(#t.floors)"/></td>
 		<td align="center"><s:date name="#t.startDate" format="yyyy-MM-dd"/></td>		
 		<td align="center"><s:date name="#t.endDate" format="yyyy-MM-dd"/></td>	
		<td align="center">${t.manager}</td>	
		<td align="center">${t.conductorEmile}</td>	
        <td align="center">${t.conductorPhone}</td>	
        </tr>  
        </s:iterator>
  </table>
</form>
</div>
<br/><br/><br/><br/><br/>
		<div><jsp:include page="/include/footer.inc"></jsp:include></div>
</body>
</html>